// src/router/index.ts
import { createRouter, createWebHistory } from "vue-router";
import SampleLayout from "../layout/SampleLayout.vue";

const routes = [
  {
    path: "/",
    component: SampleLayout,
    children: [
      {
        path: "app1",
        component: () => import("../views/App1.vue"),
      },
      {
        path: "app2",
        component: () => import("../views/App2.vue"),
      },
    ],
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
